
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type WechatKeyRequest struct {

	ReplyId string `json:"reply_id" form:"reply_id"`

	Keys string `json:"keys" form:"keys"`

	KeyType string `json:"key_type" form:"key_type"`

}

func (r *WechatKeyRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *WechatKeyRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"reply_id": "required",

		"keys": "required",

		"key_type": "required",

	}
}

func (r *WechatKeyRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *WechatKeyRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *WechatKeyRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
